import java.awt.Color;

public class HumanPlayer extends Player
{
	private String name; 
	
	public HumanPlayer(String n, Color c, SuperTicTacToeGame g)
	{
		super(c, g);
		name = n; 
	}
	
	public String getName()
	{
	    return name;
	}

	@Override
	public boolean play() 
	{
		if( playLoc != null)
		{
			game.getBoard().placePiece(new GamePiece(color, playLoc), playLoc); 
			playLoc = null; 
			return true; 
		}
		
		return false; 
	}
	
	
}
